<?php
/**
 * UserFixture
 *
 */
class UserFixture extends CakeTestFixture {

/**
 * Fields
 *
 * @var array
 */
	public $fields = array(
		'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary'),
		'name' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 128, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'),
		'email' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 128, 'key' => 'unique', 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'),
		'password' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 128, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'),
		'admin' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'key' => 'index'),
		'facebook' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 20),
		'google' => array('type' => 'string', 'null' => true, 'default' => NULL, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'),
		'active' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 4, 'key' => 'index'),
		'created' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
		'deleted' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'key' => 'index'),
		'link' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 200, 'collate' => 'utf8_general_ci', 'comment' => 'User\'s profile link', 'charset' => 'utf8'),
		'chapter_id' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'key' => 'index', 'comment' => 'Chapter  if user is organizer'),
		'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'email' => array('column' => 'email', 'unique' => 1), 'admin' => array('column' => 'admin', 'unique' => 0), 'active' => array('column' => 'active', 'unique' => 0), 'deleted' => array('column' => 'deleted', 'unique' => 0), 'chapter_id' => array('column' => 'chapter_id', 'unique' => 0)),
		'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB')
	);

/**
 * Records
 *
 * @var array
 */
	public $records = array(
		array(
			'id' => 1,
			'name' => 'Lorem ipsum dolor sit amet',
			'email' => 'Lorem ipsum dolor sit amet',
			'password' => 'Lorem ipsum dolor sit amet',
			'admin' => 1,
			'facebook' => 1,
			'google' => 'Lorem ipsum dolor sit amet',
			'active' => 1,
			'created' => '2012-06-17 22:12:03',
			'deleted' => 1,
			'link' => 'Lorem ipsum dolor sit amet',
			'chapter_id' => 1
		),
	);
}
